package com.yiwei.jmx.api.bean;

import android.text.TextUtils;

import com.yiwei.jmx.util.ToastUtil;

/**
 * Created by xsooy-pc on 18-7-6.
 */

public class IncomeHouseBean {


    /**
     * property_name : 马云
     * idno : 4418888XXXXXXXXXX
     * nature : 私有
     * way : 继承
     * image : http://xxxxxx
     * province_id : 1
     * city_id : 2
     * district_id : 3
     * address : 广东省东莞市万江区详细信息
     */

    public String property_name;
    public String idno;
    public String nature;
    public String way;
    public String image;
    public String province_id;
    public String city_id;
    public String district_id;
    public String address;


    public boolean checkAll() {
        if (TextUtils.isEmpty(property_name)) {
            ToastUtil.makeTipsText("房地产权属人不能为空");
            return false;
        }
        if (TextUtils.isEmpty(idno)) {
            ToastUtil.makeTipsText("身份证号码不能为空");
            return false;
        }
        if (TextUtils.isEmpty(nature)) {
            ToastUtil.makeTipsText("房屋性质不能为空");
            return false;
        }
        if (TextUtils.isEmpty(way)) {
            ToastUtil.makeTipsText("取得方式不能为空");
            return false;
        }
        if (TextUtils.isEmpty(province_id)) {
            ToastUtil.makeTipsText("房屋坐落不能为空");
            return false;
        }
        if (TextUtils.isEmpty(address)) {
            ToastUtil.makeTipsText("详细地址不能为空");
            return false;
        }
        if (TextUtils.isEmpty(image)) {
            ToastUtil.makeTipsText("房产证照片不能为空");
            return false;
        }
        return true;
    }
}
